/*
 * @Author: byron
 * @Date: 2022-01-12 22:14:00
 * @LastEditTime: 2022-01-12 22:37:33
 */
// 获取时间函数

export function gettime() {
    let nowtime = new Date()
    let localDate = nowtime.toLocaleDateString()
    let Hour = nowtime.getHours()
    let Minutes = nowtime.getMinutes()
    let Second = nowtime.getSeconds()
    Hour = Hour < 10 ? '0' + Hour : Hour
    Minutes = Minutes < 10 ? '0' + Minutes : Minutes
    Second = Second < 10 ? '0' + Second : Second
    return `${localDate} ${Hour}:${Minutes}:${Second}`
}
